<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
				
			function foo(e){
				console.log(e)
				console.log(e.button)
				if(e.button==2)
				{
					window.location="https://www.baidu.com"
				}
				
				
				
			}
			document.onmousedown=foo
		</script>
	</body>
</html>
